home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 March: Reference Library / Dev.CD Mar 96 RL / Dev.CD Mar 96 RL.toast / Technical Documentation / develop / develop Issue 25 / develop Issue 25 code / QD3D to QTVR / ArticleCode / Source / QD3DtoQTVR.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-20  |  3.0 KB  |  85 lines  |  [TEXT/MPCC]

  1. #include <QDOffscreen.h>
  2. #include <QuickTimeComponents.h>
  3.  
  4. #include <QD3D.h>
  5. #include <QD3DAcceleration.h>
  6. #include <QD3DCamera.h>
  7. #include <QD3DController.h>
  8. #include <QD3DDrawContext.h>
  9. #include <QD3DErrors.h>
  10. #include <QD3DGeometry.h>
  11. #include <QD3DGroup.h>
  12. #include <QD3DIO.h>
  13. #include <QD3DLight.h>
  14. #include <QD3DMath.h>
  15. #include <QD3DPick.h>
  16. #include <QD3DRenderer.h>
  17. #include <QD3DSet.h>
  18. #include <QD3DShader.h>
  19. #include <QD3DStorage.h>
  20. #include <QD3DString.h>
  21. #include <QD3DStyle.h>
  22. #include <QD3DTransform.h>
  23. #include <QD3DView.h>
  24.  
  25. #define        kGestaltTrap            0xA0AD
  26.  
  27. static const AEEventClass    kDraggingClass             = 'drag' ;
  28. static const AEEventID        kDragDrawID                = 'draw' ;
  29. static const AEEventID        kDragSendID                = 'send' ;
  30. static const AEEventID        kDragReceiveID            = 'recv' ;
  31. static const AEEventID        kDragTrackID            = 'trak' ;
  32. static const AEEventID        kDragDragID                = 'drag' ;
  33. static const AEKeyword        keyPrivateData            = 'priv' ;
  34.  
  35. static const RGBColor        kMyBlackColor            = {0,0,0};
  36. static const RGBColor        kMyWhiteColor            = {65535,65535,65535};
  37. static const TQ3ColorRGB    kMyClearColor            = {1.0,1.0,1.0};
  38. static const TQ3ColorARGB    kMyAClearColor            = {0, 0, 0, 0};
  39. static const Rect            kMyBoundsRect            = {42,4,282,324};
  40. static const Rect            kMyBoundsPanoRect        = {42,4,428,260};
  41. static const Rect            kMyBoundsBigRect        = {0,0,768,512};
  42.  
  43. static const TQ3Point3D        kMyDefaultFrom            = {0.0,0.0,1.0};
  44. static const TQ3Point3D        kMyDefaultTo            = {0.0,0.0,0.0};
  45. static const TQ3Vector3D    kMyDefaultUp            = {0.0,1.0,0.0};
  46. static const float            kMyDefaultHither        = 0.01;
  47. static const float            kMyDefaultYon            = 1000.0;
  48.  
  49. static const float            kMyDistanceFactor        = 5.0;
  50. static const TQ3Point3D        kMyZeroPoint            = {0,0,0};
  51.  
  52. static const CodecType        kMyCodec                = 'rpza' ;
  53.     
  54. typedef struct _DocumentRecord {
  55.     CWindowPtr                theWindow;                                    // display window
  56.     FSSpec                    theFileSpec;                                // input file & ref
  57.     short                    fRefNum;
  58.     GWorldPtr                drawContextOffscreen;                        // offscreen buffer
  59.     TQ3GroupObject            documentGroup;                                // main group for the document
  60.     TQ3ViewObject            theView;                                    // the documents view object
  61.     TQ3Matrix4x4            modelRotation;                                // model rotation
  62.     TQ3InterpolationStyle    currentInterpolation;
  63.     
  64.     TQ3ShaderObject            illuminationShader ;
  65.     TQ3Point3D                documentGroupCenter;                        // center of the model
  66.     float                    documentGroupScale;
  67.     
  68.     Movie                    dstMovie;    
  69.     Track                    dstTrack;    
  70.     Media                    dstMedia;    
  71.     short                    dstMovieRefNum;    
  72.     CodecType                theCodecType;
  73.     Handle                    compressedData;
  74.     Ptr                        compressedDataPtr;
  75.     ImageDescriptionHandle    idh;
  76.     
  77. } DocumentRecord, *DocumentPtr, **DocumentHandle ;
  78.  
  79.  
  80. pascal OSErr    MyAEHandleOAPP(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  81. pascal OSErr     MyAEHandleODOC(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  82. pascal OSErr     MyAEHandlePDOC(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  83. pascal OSErr     MyAEHandleQUIT(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  84. pascal OSErr     MyAEHandleDragRecv(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  85.